package routers

import (
	"github.com/gin-gonic/gin"
	"ys-platform/controllers/user"
)

func UserRoutesInit(r *gin.Engine) {
	userRoutes := r.Group("/user")
	{

		userRoutes.GET("/list", user.UserController.List)
		userRoutes.POST("/add", user.UserController.Add)
		userRoutes.GET("/edit", user.UserController.Edit)
		userRoutes.GET("/remove", user.UserController.Remove)
		userRoutes.GET("/batchRemove", user.UserController.BatchRemove)
	}
}
